package com.glsc.ngateway.common.base.domain.mysql.opmanage.report.excel;

import java.io.Serializable;
import java.util.Date;

public class PnLInstrLvId implements Serializable {
    private static final long serialVersionUID = 1L;
    private String pf;
    private String instrType;
    private String instrName;
    private String isin;
    private Date date;
    private String fundname;

    public PnLInstrLvId(String pf,String instrType,String instrName,String isin,Date date,String fundname){
        super();
        this.pf=pf;
        this.instrType=instrType;
        this.instrName=instrName;
        this.isin=isin;
        this.date=date;
        this.fundname=fundname;
    }

    public PnLInstrLvId(){
        super();
    }

    public void setPf(String pf) {
        this.pf = pf;
    }

    public String getPf() {
        return pf;
    }

    public String getInstrName() {
        return instrName;
    }

    public void setInstrName(String instrName) {
        this.instrName = instrName;
    }

    public String getInstrType() {
        return instrType;
    }

    public void setInstrType(String instrType) {
        this.instrType = instrType;
    }

    public String getIsin() {
        return isin;
    }

    public void setIsin(String isin) {
        this.isin = isin;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public void setFundname(String fundname) {
        this.fundname = fundname;
    }

    public String getFundname() {
        return fundname;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((pf == null) ? 0 : pf.hashCode());
        result = prime * result + ((instrType == null) ? 0 : instrType.hashCode());
        result = prime * result + ((instrName == null) ? 0 : instrName.hashCode());
        result = prime * result + ((isin == null) ? 0 : isin.hashCode());
        result = prime * result + ((date == null) ? 0 : date.hashCode());
        result = prime * result + ((fundname == null) ? 0 : fundname.hashCode());
        return result;
    }
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        PnLInstrLvId other = (PnLInstrLvId) obj;
        if (pf == null) {
            if (other.pf != null)
                return false;
        } else if (!pf.equals(other.pf))
            return false;
        if (instrType == null) {
            if (other.instrType != null)
                return false;
        } else if (!instrType.equals(other.instrType))
            return false;
        if (instrName == null) {
            if (other.instrName != null)
                return false;
        } else if (!instrName.equals(other.instrName))
            return false;
        if (isin == null) {
            if (other.isin != null)
                return false;
        } else if (!isin.equals(other.isin))
            return false;
        if (date == null) {
            if (other.date != null)
                return false;
        } else if (!date.equals(other.date))
            return false;
        if (fundname == null) {
            if (other.fundname != null)
                return false;
        } else if (!fundname.equals(other.fundname))
            return false;
        return true;
    }
}

